﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using LogicLayer.Ultities;

namespace Core.Models
{
    [MetadataType(typeof(CommentMetaData))]
    public partial class Comment : IBaseObject
    {
    }

    public class CommentMetaData
    {
        public object Id { get; set; }
        public object PostId { get; set; }
        [Required(ErrorMessage = "Content is required")]
        public object Content { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd-MMM-yyyy HH:mm:ss}")]
        public object CreatedDate { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd-MMM-yyyy HH:mm:ss}")]
        public object ModifyDate { get; set; }
        [Required(ErrorMessage = "Email is required")]
        [Email(ErrorMessage = "Format email is incorrect")]
        public object Email { get; set; }
        [Required(ErrorMessage = "FirstName is required")]
        public object FirstName { get; set; }
        [Required(ErrorMessage = "LastName is required")]
        public object LastName { get; set; }

        public virtual object Post { get; set; }
    }
}
